package cn.thr.ymcc.service;

import cn.thr.ymcc.CourseDoc;
import cn.thr.ymcc.domain.CourseCart;
import cn.thr.ymcc.dto.OrderDto;
import cn.thr.ymcc.result.JsonResult;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author thr
 * @since 2023-03-09
 */
public interface ICourseCartService extends IService<CourseCart> {

    JsonResult add(CourseDoc courseDoc, HttpServletRequest request);
    /**
     * 购物车结算
     * @param courseIds
     * @return
     */
    Double calAmount(List<Long> courseIds,HttpServletRequest request);
}
